package com.yhb.dao;

import com.yhb.model.Order;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrderMapper {
    int createOrder(@Param("order")Order order);
    int modifyOrder(@Param("order")Order order);
    Order getOrder(@Param("orderId")String orderId);
    Order getOrderByTradeNo(@Param("tradeNo")String tradeNo);

    List<Order> userOrders(@Param("userId")String userId);
    List<Order> orderInRange(@Param("start") Date start, @Param("end") Date end);
}
